<?php $website_url = Configure::read('Website.url'); ?>
<?php echo $form->create('Product', array('action' => "advancesearchresults", 'id' => 'search')) ?>

<div class="yourAccMain">
    <h6> Advance Search</h6>
    <div class="yourAccMain_L_in">
        <div class="def_div f_left">
            <div class="acc_form_1">Name or WISN: :</div>
            <div class="acc_form_2">
                <input type="text" name="data[Search][keyword]">
            </div>
        </div>
        <div class="def_div f_left">
            <div class="acc_form_1">&nbsp;</div>
            <div class="acc_form_2">
                <label>
                    <input type="radio" value="1" checked="checked" name="data[Search][anyword]">
                    All these words</label>
                <label>
                    <input type="radio" value="2" name="data[Search][allwords]">
                    Any of these words</label>
            </div>
        </div>

        <div class="def_div f_left">
            <div class="acc_form_1">In this Category :</div>
            <div class="acc_form_2">
                <?php
                if (isset($Seach_categories) and ($Seach_categories)) {
                    $Seach_categories = $Seach_categories;
                    $Seach_categories['0'] = $Seach_categories['0'];
                } else {
                    $Seach_categories = "";
                    $Seach_categories['0'] = "";
                }
                echo $this->Form->input('Search.cat_id', array('type' => 'select', 'options' => $Seach_categories,
                    'default' => $Seach_categories['0'], 'class' => 'select_count', 'id' => 'Categoryselect_count', 'empty' => false, 'label' => false)
                );
                ?>
            </div>
        </div>
        <div class="common_border"></div>
        <div class="pad_10"></div>
        <div class="def_div f_left">
            <div class="acc_form_1">Unit price (US $):</div>
            <div class="acc_form_2"> <?php echo $this->Form->input('Search.min_price', array('type' => 'text', 'class' => 'size_80', 'label' => false)); ?> to <?php echo $this->Form->input('Search.max_price', array('type' => 'text', 'class' => 'size_80', 'label' => false)); ?> </div>
        </div>
        <div class="def_div f_left">
            <div class="acc_form_1">Shipping cost :</div>
            <div class="acc_form_2"> <?php echo $this->Form->input('Search.shippingcost', array('type' => 'checkbox', 'class' => '', 'label' => 'Only free shipping')); ?> </div>
        </div>
        <div class="def_div f_left">
            <div class="acc_form_1">Seller name :</div>
            <div class="acc_form_2"> <?php echo $this->Form->input('Search.seller', array('type' => 'text', 'class' => 'size_80', 'label' => false)); ?> </div>
        </div>
        <div class="common_border"></div>
        <div class="pad_10"></div>
        <div class="def_div f_left">
            <div class="acc_form_1">Sort by :</div>
            <div class="acc_form_2">
                <select class="select_count1" name="">
                    <option selected="selected" id="bestmatch" value="bestmatch,up">Best match</option>
                    <option value="price,up">Price: lowest first</option>
                    <option value="price,down">Price: highest first</option>
                    <option value="operatedate,down">Recently listed</option>
                    <option value="feedback,down">High Rating</option>
                </select>
            </div>
        </div>
        <div class="def_div f_left">
            <div class="acc_form_1">&nbsp;</div>
            <div class="acc_form_2">
                <input type="submit" class="add2cart" value="Submit" name="">
            </div>
        </div>
    </div>
<?php echo $form->end(); ?> </div>
